package com.mall.client.mallCategory;

import java.util.List;

import com.mall.pojo.MallCategory;
import com.mall.pojo.MallCategoryExample;



public interface MallCategoryService {

	List<MallCategory> getMallCategoryList(MallCategoryExample example);
	
	/**
	 * 根据key获得一级类目结合
	 * @param onlyKey
	 * @return
	 */
	List<MallCategory> getFirstMallCategoryListByKey(Integer onlyKey);
	
	MallCategory getMallCategoryById(Integer categoryId);
	
	List<MallCategory> getSecMallCategoryListByParentMallCategoryId(Integer categoryId);

	int modifyMallCategoryByMallCategory(MallCategory mallCategory);
	
	int deleteMallCategoryByCategoryId(Integer categoryId);
	
	int addMallCategoryByMallCategory(MallCategory mallCategory);
	
	int updateStatusByIds(List<Integer> ids);
}
